<%@ page language="java" import="java.util.*"  contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
        <base href="<%=basePath%>">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0" /> 
		    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
		<title>首页</title>
		
		 <link href="./assets/css/bootstrap.css" rel="stylesheet" />
	     <!-- FONTAWESOME STYLES-->
	    <link href="./assets/css/font-awesome.css" rel="stylesheet" />
	     <!-- MORRIS CHART STYLES-->
	    <link href="./assets/js/morris/morris-0.4.3.min.css" rel="stylesheet" />
	        <!-- CUSTOM STYLES-->
	    <link href="./assets/css/custom.css" rel="stylesheet" />
	     <!-- GOOGLE FONTS-->
   		<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
   		
		<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
		<script src="./js/bootstrap.min.js"></script>
		<script src="./js/time.js"></script>
		
  </head>
  
  <body>
             
     <div id="wrapper">
        <nav class="navbar navbar-default navbar-cls-top " role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
               
                <a class="navbar-brand" href="jsp/index.jsp">首页</a> 
            </div>
  <div style="color: white;
			padding: 15px 50px 5px 50px;
			float: right;
			font-size: 16px;"> <span id="Clock"></span>欢迎<%=session.getAttribute("me")%>
			&nbsp; <a href="invalidateServlet" class="btn btn-danger square-btn-adjust">Logout</a> </div>
        </nav>   
           <!-- /. NAV TOP  -->
                <nav class="navbar-default navbar-side" role="navigation">
            <div class="sidebar-collapse">
                <ul class="nav" id="main-menu">
				<li class="text-center">
                    <img src="assets/img/find_user.png" class="user-image img-responsive"/>
					</li>
				
					<li>
                        <a href="#"><i class="fa fa-edit fa-3x"></i> 基本信息<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="./jsp/product.jsp">产品列表</a>
                            </li>
                            <li>
                                <a href="./jsp/productType.jsp">产品类型列表</a>
                            </li>
                            <li>
                                <a href="jsp/user.jsp">用户列表</a>
                            </li>
                        </ul>
                      </li>  
					
					<li>
                        <a  href="jsp/orders.jsp"><i class="fa fa-table fa-3x"></i> 所有销售记录</a>
                    </li>
					
					<li  >
                        <a  href="order.jsp"><i class="fa fa-desktop fa-3x"></i> 销售前台 </a>
                    </li>
                    
					<li>
                        <a href="#"><i class="fa fa-bar-chart-o fa-3x"></i>图形报表<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="jsp/moneyReport.jsp">月销售额报表</a>
                            </li>
                            <li>
                                <a href="jsp/numReport.jsp">产品销量报表</a>
                            </li>
                           
                        </ul>
                      </li>   
                
                </ul>
               
            </div>
            
        </nav>  
        <!-- /. NAV SIDE  -->
        <div id="page-wrapper" >
            <div id="page-inner">
            
           
            
            </div>
             <!-- /. PAGE INNER  -->
            </div>
         <!-- /. PAGE WRAPPER  -->
        </div>
     <!-- /. WRAPPER  -->
    <!-- SCRIPTS -AT THE BOTOM TO REDUCE THE LOAD TIME-->
    <!-- JQUERY SCRIPTS -->
    <script src="assets/js/jquery-1.10.2.js"></script>
      <!-- BOOTSTRAP SCRIPTS -->
    <script src="assets/js/bootstrap.min.js"></script>
    <!-- METISMENU SCRIPTS -->
    <script src="assets/js/jquery.metisMenu.js"></script>
     <!-- MORRIS CHART SCRIPTS -->
     <script src="assets/js/morris/raphael-2.1.0.min.js"></script>
    <script src="assets/js/morris/morris.js"></script>
      <!-- CUSTOM SCRIPTS -->
    <script src="assets/js/custom.js"></script>
    
   
  
  
  </body>
		
	<script type="text/javascript">
		var base = '<%=request.getAttribute("base")%>';
		$(function() {
			init();
		});
	</script>
</html>
